<script setup lang="ts">
const emit = defineEmits<{
  showGood: [step: number];
}>()

function onShowGood() {
  emit('showGood', 2);
}
</script>

<template>
  <n-button @click="onShowGood">
    <slot>点一下</slot>
  </n-button>
</template>

<style scoped>

</style>